<?php

namespace App\Http\Resources\Backend;

use Illuminate\Http\Resources\Json\Resource;

class AdminLogResource extends Resource
{
    public function toArray($request)
    {
        return [
            'admin_username' => $this->admin_username,
            'action' => $this->action,
            'action_ip' => $this->action_ip,
            'created_at' => $this->created_at ? $this->created_at->format("Y-m-d H:i:s") : null
        ];
    }
}
